package org.yang;

import junit.framework.TestCase;

public class TestQueue extends TestCase{
	public void setup(){
		
	}
	public void testEn() throws InterruptedException{
		Queue queue = new Queue();
		queue.EnQueue(12);
		int a =(Integer) queue.DeQueue();
		assertEquals(a, 12);
	}
	public void testEn2() throws InterruptedException{
		Queue queue = new Queue();
		queue.EnQueue(12);
		queue.EnQueue(13);
		int a =(Integer) queue.DeQueue();
		assertEquals(a, 12);
		a =(Integer) queue.DeQueue();
		assertEquals(a, 13);
	}
	
}
